#include<iostream>
using namespace std;
int main()
{
  int n;
  cin>>n;
  int a;
  int sum=0;
  double ave;
  for(int i=0;i<n;i++)
  {
    cin>>a;
    sum+=a;
  }
  cout<<sum<<" ";
  cout.precision(5);
  cout<<fixed;
  ave=sum;
  ave/=n;
  cout<<ave;
}